package com.cy.pj.db10.service.impl;

import com.cy.pj.db10.dao.Db10Dao;
import com.cy.pj.db10.pojo.Db10;
import com.cy.pj.db10.service.Db10Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Db10impl implements Db10Service {

    @Autowired
    private Db10Dao db10Dao;

    @Override
    public List<Db10> findDb10(String name) {
        List<Db10> list = db10Dao.findDb10(name);
        return list;
    }


    @Override
    public int saveDb10(Db10 db10) {
        int i = db10Dao.saveDb10(db10);
        return i;
    }


    @Override
    public Db10 findById(Integer id) {
        return db10Dao.findById(id);
    }
    @Override
    public int updateDb10(Db10 db10) {
        return db10Dao.updateDb10(db10);
    }

    @Override
    public int deleteById(Integer id) {
        return db10Dao.deleteById(id);
    }


}
